"""create initial tables

Revision ID: 750a36340e7b
Revises: 
Create Date: 2025-10-30 17:18:57.574282

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '750a36340e7b'
down_revision: Union[str, Sequence[str], None] = None
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('meetings',
    sa.Column('id', sa.Integer(), autoincrement=True, nullable=False, comment='主键'),
    sa.Column('title', sa.String(length=255), nullable=False, comment='会议标题'),
    sa.Column('folder_path', sa.String(length=255), nullable=True, comment='会议存放路径'),
    sa.Column('start_time', sa.DateTime(), nullable=True, comment='开始时间'),
    sa.Column('end_time', sa.DateTime(), nullable=True, comment='结束时间'),
    sa.Column('create_id', sa.INTEGER(), server_default=sa.text('0'), nullable=True, comment='创建人'),
    sa.Column('create_time', sa.TIMESTAMP(), nullable=True, comment='创建时间'),
    sa.Column('update_id', sa.INTEGER(), server_default=sa.text('0'), nullable=True, comment='更新人'),
    sa.Column('update_time', sa.TIMESTAMP(), nullable=True, comment='更新时间'),
    sa.PrimaryKeyConstraint('id'),
    comment='会议表'
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('meetings')
    # ### end Alembic commands ###
